<?php
 @include_once("connect.php");
   $phone=$_POST["phone"];
   $email=$_POST["email"];
   $pwd=$_POST["password"];
  $sql="insert into `userinfo` (phone,email,password) VALUE('$phone','$email','$pwd')";
        $result=mysqli_query($conn,$sql);
        $obj=array();
        if($result){
            $rows=mysqli_affected_rows($conn);
            if($rows>0){
                $obj["status"]=true;
                $obj["msg"]='新增成功';
            }

        }else{
        $obj['status']=false;
        $obj["msg"]='sql语句有误';
        }
    echo json_encode($obj);
?>